<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PowerVR SDK</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<table width="100%">
  <tr>
    <td width="33%">
      <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
    </td>
    <td width="33%">
      <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
    </td>
    <td width="34%">
      <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
    </td>
  </tr>
</table>
<hr>
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>PVRShellOS.h</h1><a href="PVRShellOS_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
00002 <span class="comment"></span>
00003 <span class="comment"> @File         PVRShellOS.h</span>
00004 <span class="comment"></span>
00005 <span class="comment"> @Title        Qt/PVRShellOS</span>
00006 <span class="comment"></span>
00007 <span class="comment"> @Version      </span>
00008 <span class="comment"></span>
00009 <span class="comment"> @Copyright    Copyright (C)  Imagination Technologies Limited.</span>
00010 <span class="comment"></span>
00011 <span class="comment"> @Platform     Qt</span>
00012 <span class="comment"></span>
00013 <span class="comment"> @Description  Makes programming for 3D APIs easier by wrapping surface</span>
00014 <span class="comment">               initialization, Texture allocation and other functions for use by a demo.</span>
00015 <span class="comment"></span>
00016 <span class="comment">******************************************************************************/</span>
00017 <span class="preprocessor">#ifndef _PVRSHELLOS_</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#define _PVRSHELLOS_</span>
00019 <span class="preprocessor"></span>
00020 <span class="comment">/****************************************************************************</span>
00021 <span class="comment"> ** INCLUDES                                                               **</span>
00022 <span class="comment"> ****************************************************************************/</span>
00023 <span class="preprocessor">#include &lt;QMainWindow&gt;</span>
00024 <span class="preprocessor">#include &lt;QTimer&gt;</span>
00025 <span class="preprocessor">#include &lt;QTime&gt;</span>
00026 
00027 <span class="comment">/****************************************************************************</span>
00028 <span class="comment"> ** DEFINES                                                               **</span>
00029 <span class="comment"> ****************************************************************************/</span>
00030 <span class="preprocessor">#define PVRSHELL_DIR_SYM    '/'</span>
00031 <span class="preprocessor"></span><span class="preprocessor">#define _stricmp strcasecmp</span>
00032 <span class="preprocessor"></span><span class="preprocessor">#define _strnicmp strncasecmp</span>
00033 <span class="preprocessor"></span>
<a name="l00034"></a><a class="code" href="PVRShellOS_8h.html#a0">00034</a> <span class="comment">/*!***************************************************************************</span>
<a name="l00035"></a><a class="code" href="PVRShellOS_8h.html#a1">00035</a> <span class="comment"> PVRShellInitOS</span>
<a name="l00036"></a><a class="code" href="PVRShellOS_8h.html#a2">00036</a> <span class="comment"> @Brief Class. Interface with specific Operative System.</span>
00037 <span class="comment">*****************************************************************************/</span>
00038 <span class="keyword">class </span><a class="code" href="classPVRShell.html">PVRShell</a>;
00039 <span class="keyword">class </span><a class="code" href="classPVRShellInit.html">PVRShellInit</a>;
00040 
00041 <span class="keyword">class </span><a class="code" href="classPVRShellMainWindow.html">PVRShellMainWindow</a> : <span class="keyword">public</span> QMainWindow
00042 {
00043     Q_OBJECT
00044 
<a name="l00045"></a><a class="code" href="classPVRShellMainWindow.html">00045</a> <span class="keyword">public</span>:
00046     <a class="code" href="classPVRShellMainWindow.html#a0">PVRShellMainWindow</a>(<a class="code" href="classPVRShellInit.html">PVRShellInit</a> *pInit);
00047     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a1">keyPressEvent</a>(QKeyEvent* keyEvent);
00048     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a2">mousePressEvent</a>(QMouseEvent *mouseEvent);
00049     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a3">mouseReleaseEvent</a>(QMouseEvent *mouseEvent);
00050     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a4">mouseMoveEvent</a>(QMouseEvent *mouseEvent);
00051     <span class="keyword">virtual</span> QSize <a class="code" href="classPVRShellMainWindow.html#a5">sizeHint</a>();
00052     <span class="keywordtype">bool</span> <a class="code" href="classPVRShellMainWindow.html#a6">IsTouched</a>();
00053     <span class="keywordtype">float</span>* <a class="code" href="classPVRShellMainWindow.html#a7">GetTouchPosition</a>();
00054 
00055 <span class="keyword">protected</span>:
00056     <a class="code" href="classPVRShellInit.html">PVRShellInit</a> *<a class="code" href="classPVRShellMainWindow.html#p0">m_pInit</a>;
00057     <span class="keywordtype">bool</span> <a class="code" href="classPVRShellMainWindow.html#p1">m_bTouch</a>;
00058     <span class="keywordtype">float</span> <a class="code" href="classPVRShellMainWindow.html#p2">m_fVec2PointerLocation</a>[2];
00059 };
<a name="l00060"></a><a class="code" href="classPVRShellMainWindow.html#p0">00060</a> 
<a name="l00061"></a><a class="code" href="classPVRShellMainWindow.html#p1">00061</a> <span class="keyword">class </span><a class="code" href="classPVRShellTimer.html">PVRShellTimer</a> : <span class="keyword">public</span> QTimer
<a name="l00062"></a><a class="code" href="classPVRShellMainWindow.html#p2">00062</a> {
00063     Q_OBJECT
00064 
<a name="l00065"></a><a class="code" href="classPVRShellTimer.html">00065</a> <span class="keyword">public</span>:
00066     <a class="code" href="classPVRShellTimer.html#a0">PVRShellTimer</a>(QObject *parent = 0);
00067     <span class="keyword">virtual</span> <a class="code" href="classPVRShellTimer.html#a1">~PVRShellTimer</a>();
00068     <span class="keywordtype">bool</span> <a class="code" href="classPVRShellTimer.html#a2">Init</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv);
00069     <span class="keywordtype">void</span> <a class="code" href="classPVRShellTimer.html#a3">DeInit</a>();
00070 
00071 <span class="keyword">private</span> slots:
00072     <span class="keywordtype">void</span> Run();
00073 
00074 <span class="keyword">protected</span>:
00075     <a class="code" href="classPVRShellInit.html">PVRShellInit</a> *m_pInit;
00076 };
00077 
00078 <span class="keyword">class </span><a class="code" href="classPVRShellInitOS.html">PVRShellInitOS</a>
<a name="l00079"></a><a class="code" href="classPVRShellTimer.html#p0">00079</a> {
00080 <span class="keyword">public</span>:
00081         <a class="code" href="classPVRShellMainWindow.html">PVRShellMainWindow</a> *m_pWindow;
<a name="l00082"></a><a class="code" href="classPVRShellInitOS.html">00082</a>         QTime <a class="code" href="classPVRShellInitOS.html#o1">m_Time</a>;
00083 };
00084 
<a name="l00085"></a><a class="code" href="classPVRShellInitOS.html#o0">00085</a> <span class="preprocessor">#endif </span><span class="comment">/* _PVRSHELLOS_ */</span>
<a name="l00086"></a><a class="code" href="classPVRShellInitOS.html#o1">00086</a> <span class="comment">/*****************************************************************************</span>
00087 <span class="comment"> End of file (PVRShellOS.h)</span>
00088 <span class="comment">*****************************************************************************/</span>
00089 
00090 
</pre></div><br>
<br>
<P align=left><FONT size=2><STRONG><A 
   href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> � 
   1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
<hr>
<address style="align: left;"><small><FONT color=f0f>
Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
</body>
</html>
